*{
    margin: 0;
    padding: 0;
    line-height: 1;
}
html,body{
    height: 100%;
}
input{
    outline: none;
}
a{
    text-decoration: none;
}

.add,.mask .dialog{
    margin:0 0 40px 20px;
    width: 500px;
    display: flex;
    flex-direction: column;
}
.add h1 span{
    font-size: 18px;
    margin-left: 10px;
    color: gray;
}
div hr{
    margin: 0 0 20px;
}
div label{
    display: flex;
    justify-content: space-between;
    border: 2px solid rgb(183, 183, 183);
    border-radius: 5px;
    height: 40px;
    margin-bottom: 10px;
}
div label span{
    padding: 0 10px;
    text-align: center;
    line-height: 40px;
    color: #787676;
    justify-content: center;
    width: 80px;
    background: rgb(233, 233, 233);
    text-align-last: justify;
    border-right: 2px solid rgb(183, 183, 183);    
}
div label input{
    flex: 1;
    border: 0;
    padding: 0 10px;
}
input::-webkit-input-placeholder{
    color: #bebdbd;
}
.add button{
    width: 120px;
    height: 30px;
    border-radius: 3px;
    margin-right: 10px;
}
.add .keep{
    background: rgb(85, 122, 201);
    border: 0;
    color: #fff;
}
.add .set{
    background: transparent;
    border: 1px solid #bebdbd;
}
table{
    width: 500px;
    margin-left: 20px;
    border-collapse: collapse;
    border-bottom: 2px solid #d4d3d3;
}
table tr{
    height: 30px;
    border-top: 2px solid #d4d3d3;
}
table thead{
    color: #000;
    font-weight: 700;
}
table thead tr{
    background: rgb(240, 238, 238);
}
tbody tr:nth-child(even){
    background-color: rgb(240, 238, 238);
}
table td{
    padding: 0 5px;
}
table thead td:first-child{
    width: 120px;
}
tbody button{
    width: 35px;
    height: 20px;
    margin-right: 5px;
    border: 1px solid rgb(156, 154, 154);
    border-radius: 3px;
    color: #fff;
}
tbody .change{
    background: #2db013;
}
tbody .del{
    background: rgb(243, 24, 24);
}
.mask{
    width: 100%;
    height: 100%;
    background-color: rgb(55, 54, 54,0.4);
    position: fixed;
    top: 0;
    left: 0;
    display: none;
}
.mask .dialog{
    background-color: #fff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 5px 5px 5px 0 #333;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}
.mask h1{
    font-size: 20px;
    margin: 10px 0 10px;
}
.mask p{
    display: flex;
    justify-content: flex-end;
}
.mask button{
    height: 30px;
    margin-left: 5px;
    border: 1px solid rgb(189, 188, 188);
    border-radius: 3px;
}
.mask .off{
    width: 45px;
    background: transparent;
}
.mask .change{
    width: 100px;
    background: rgb(85, 122, 201);
    color: #fff;
}